package cn.autoOffice.bean.dto;

import cn.autoOffice.bean.pojo.Employee;
import cn.office.shiro.interf.UserInfo;
import lombok.Data;

/**
 * @author 金健伟
 * @DATE 2023/4/4 9:49
 * 功能说明：
 */

@Data
public class EmployeeDto extends Employee implements UserInfo {

    private String authority;

    @Override
    public String getUserName() {
        return String.valueOf(this.getEmpCode());
    }

    @Override
    public String getPassWord() {
        return super.getEmpPassword();
    }

    @Override
    public String getRoleName() {
        return this.getAuthority();
    }

    public String getAuthority() {
        return this.authority;
    }


}
